package com.we823.project.model.we;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.we823.project.model.BaseModel;

@Entity
@Table(name="we_user_role")
public class UserRoleModel extends BaseModel {

	private static final long serialVersionUID = -1399031623118872114L;

	private int userId=0;
	private int roleId=0;
	
	@Transient
	private List<ResourceModel> resources;

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getRoleId() {
		return roleId;
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public List<ResourceModel> getResources() {
		return resources;
	}

	public void setResources(List<ResourceModel> resources) {
		this.resources = resources;
	}
}
